/**
 * @creationDate 2019/12/26
 */
import React from 'react';
import intl from "../utils/intl";
import { componentMapCustomizeBuilder } from "../utils/customize/helpers";
/**
 * LowCode 组件没有加载成功
 * @param componentCode
 * @returns {*}
 * @constructor
 */

var ComponentNotLoad = function ComponentNotLoad(_ref) {
  var componentCode = _ref.componentCode;
  var cpaasModule = 'cfle';
  return /*#__PURE__*/React.createElement("div", null, intl.get('cpaas.common.error.message.componentModuleMiss', {
    componentCode: componentCode,
    service: cpaasModule
  }).d("<".concat(componentCode, " /> \u7EC4\u4EF6\u52A0\u8F7D\u5931\u8D25, ").concat(cpaasModule, "\u670D\u52A1\u672A\u5B89\u88C5")));
};
/**
 * LowCode 组件加载中
 * @returns {null}
 * @constructor
 */


var ComponentLoading = function ComponentLoading() {
  return null;
};

var customizeComponent = componentMapCustomizeBuilder('clcd', 'component', {
  NotFound: ComponentNotLoad,
  Loading: ComponentLoading
});
var setComponent = customizeComponent.setComponent,
    SharedComponent = customizeComponent.SharedComponent;
export { setComponent, SharedComponent }; // type